#Tips: It can work in python2 and python3

from bottle import run, route, static_file

@route('/')
def index():
    return static_file('index.html', './')

@route('/resource/<filename>')
def staticFile(filename):
    return static_file(filename, './resource')

run(host='192.168.21.101', port='8080')